<div bsModal #editModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="editModal"
  aria-hidden="true" [config]="{backdrop: 'static'}">
  <div class="modal-dialog">
    <div class="modal-content">
      <form *ngIf="active" #editForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
        <div class="modal-header">
          <h4 class="modal-title">
            <span>{{type == 1 ? '填写出库信息' : '填写入库信息'}}</span>
          </h4>
          <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">

          <div class="form-group">
            <label for="stockInfo">{{type == 1 ? '出库信息' : '入库信息'}}</label>
            <input id="stockInfo" type="text" name="stockInfo" class="form-control" [(ngModel)]="stockInfo">
          </div>

          <div class="form-group">
            <label for="remark">{{type == 1 ? '出库备注' : '入库备注'}}</label>
            <input id="remark" type="text" name="remark" class="form-control" [(ngModel)]="remark">
          </div>
        </div>
        <div class="modal-footer">
          <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">{{l("Cancel")}}</button>
          <button type="submit" class="btn btn-primary" [disabled]="!editForm.form.valid" [buttonBusy]="saving"
            [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>{{type == 1 ? '出库' : '入库'}}</span></button>
        </div>
      </form>
    </div>
  </div>
</div>
